package com.spring.lifecycle.bean;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class Girl {

    public Girl() {
        System.out.println("girl constructor...");
    }

    @PostConstruct
    public void init(){
        System.out.println("注解@PostConstruct初始化bean");
    }

    @PreDestroy
    public void destory(){
        System.out.println("注解@PreDestroy销毁bean");
    }


}
